/**
 * @param {user} props 
 * 展示一个用户列表itme
 */
import {Button} from "antd"


function UserItem(props){
  const {user:{id,name,hooby},deleteById} = props
  return <li>
      <span> {id} -- {name} -- {hooby} </span>
      <Button type="primary" onClick={()=>deleteById(id)}>删除用户</Button>
  </li>

}

export default UserItem